package net.apexes.demo.codegen.ormlite.annotation.entity;

import com.j256.ormlite.field.*;
import com.j256.ormlite.table.*;
import net.apexes.demo.codegen.entity.base.OrmliteEntityBase;

/**
 * GoodsComboItem. Corresponds to the database table "GOODS_COMBO_ITEM"
 */
@DatabaseTable(tableName = "GOODS_COMBO_ITEM")
public class GoodsComboItem extends OrmliteEntityBase {

    private static final long serialVersionUID = 1L;

    /**
     * The columns of table "GOODS_COMBO_ITEM"
     */
    public interface $ extends OrmliteEntityBase.$ {

        /**
         * CHILD_GOODS_ID
         */
        public static final String childGoodsId = "CHILD_GOODS_ID";

        /**
         * GOODS_COMBO_GROUP_ID
         */
        public static final String goodsComboGroupId = "GOODS_COMBO_GROUP_ID";

        /**
         * PARENT_GOODS_ID
         */
        public static final String parentGoodsId = "PARENT_GOODS_ID";

        /**
         * PRICE
         */
        public static final String price = "PRICE";

        /**
         * TEMPLATE_ID
         */
        public static final String templateId = "TEMPLATE_ID";

    }

    @DatabaseField(columnName = $.childGoodsId, canBeNull = false)
    private String childGoodsId;

    @DatabaseField(columnName = $.goodsComboGroupId, canBeNull = false)
    private String goodsComboGroupId;

    @DatabaseField(columnName = $.parentGoodsId, canBeNull = false)
    private String parentGoodsId;

    @DatabaseField(columnName = $.price, canBeNull = false)
    private java.math.BigDecimal price;

    @DatabaseField(columnName = $.templateId, canBeNull = false)
    private String templateId;

    public String getChildGoodsId() {
        return childGoodsId;
    }

    public void setChildGoodsId(String childGoodsId) {
        this.childGoodsId = childGoodsId;
    }

    public String getGoodsComboGroupId() {
        return goodsComboGroupId;
    }

    public void setGoodsComboGroupId(String goodsComboGroupId) {
        this.goodsComboGroupId = goodsComboGroupId;
    }

    public String getParentGoodsId() {
        return parentGoodsId;
    }

    public void setParentGoodsId(String parentGoodsId) {
        this.parentGoodsId = parentGoodsId;
    }

    public java.math.BigDecimal getPrice() {
        return price;
    }

    public void setPrice(java.math.BigDecimal price) {
        this.price = price;
    }

    public String getTemplateId() {
        return templateId;
    }

    public void setTemplateId(String templateId) {
        this.templateId = templateId;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(super.toString());
        sb.append(",childGoodsId=").append(childGoodsId);
        sb.append(",goodsComboGroupId=").append(goodsComboGroupId);
        sb.append(",parentGoodsId=").append(parentGoodsId);
        sb.append(",price=").append(price);
        sb.append(",templateId=").append(templateId);
        return sb.toString();
    }

    @Override
    public int hashCode() {
        return super.hashCode();
    }

    @Override
    public boolean equals(Object obj) {
        return super.equals(obj);
    }

}

